﻿using System.Web.Mvc;

namespace Wicresoft.SMS.Web.Areas.home
{
    public class homeAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "home";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                null,
                "",
                new { controller = "Index", action = "Index" }
            );
            context.MapRoute(
                null,
                "home/setting",
                new { controller = "Index", action = "Setting" }
            );
            context.MapRoute(
                null,
                "home/index",
                new { controller="Index", action = "Index" }
            );
            context.MapRoute(
                null,
                "home",
                new { controller = "Index", action = "Index" }
            );
            context.MapRoute(
                null,
                "Common/Menu",
                new { controller = "Common", action = "Menu" }
            );
        }
    }
}
